package com.example.cim.model;

import org.springframework.beans.factory.annotation.Value;

/**
 * Function:
 *
 * @author crossoverJie
 * Date: 2020-04-12 20:48
 * @since JDK 1.8
 */
public final class ServerInfo {
    private String ip ;
    private Integer websocketPort;
    private Integer appPort;
    private Integer httpPort;

    public ServerInfo(String ip, Integer websocketPort,Integer appPort, Integer httpPort) {
        this.ip = ip;
        this.websocketPort = websocketPort;
        this.appPort = appPort;
        this.httpPort = httpPort;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getWebsocketPort() {
        return websocketPort;
    }

    public void setWebsocketPort(Integer websocketPort) {
        this.websocketPort = websocketPort;
    }

    public Integer getAppPort() {
        return appPort;
    }

    public void setAppPort(Integer appPort) {
        this.appPort = appPort;
    }

    public Integer getHttpPort() {
        return httpPort;
    }

    public void setHttpPort(Integer httpPort) {
        this.httpPort = httpPort;
    }
}
